//
//  ResultoptionTableViewCell.m
//  SafeFoodManagerDemo
//
//  Created by bob on 2017/11/9.
//  Copyright © 2017年 bob. All rights reserved.
//

#import "ResultoptionTableViewCell.h"

@implementation ResultoptionTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.NotPassBtn.layer.cornerRadius=5.0;
    
    self.NotPassBtn.layer.masksToBounds=YES;
    
    self.SureBtn.layer.cornerRadius=5.0;
    
    self.SureBtn.layer.masksToBounds=YES;
    
    // Initialization code
}

-(void)setIsHidenSureBtn:(BOOL)isHidenSureBtn
{
    _isHidenSureBtn=isHidenSureBtn;
    
    if (isHidenSureBtn) {
        
        self.SureBtnheight.constant=0;
        self.SureBtnTop.constant=0;
        self.SureBtn.hidden=YES;
        
    }else{
        
        self.SureBtn.hidden=NO;
        
    }
    
    
}

-(void)setIshidenSearh:(BOOL)ishidenSearh
{
    _ishidenSearh=ishidenSearh;
    
    self.SearchBtn.hidden=ishidenSearh;
    
}


- (IBAction)NotPassAction:(UIButton *)sender {
    
    _block(1);
}
- (IBAction)SureAction:(UIButton *)sender {
    
     _block(2);
}
- (IBAction)GotoSearhAction:(UIButton *)sender {
    
    NSLog(@"sss");
    
     _block(3);
}
- (IBAction)LookDetialAction:(UIButton *)sender {
    
     _block(4);
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
